<template>
  <h3>我是父组件</h3>
  <HeiMa />
</template>

<script setup>
import HeiMa from './components/HeiMa.vue';
</script>
<!-- vue3里面可以写多个script标签，但是只能有一个setup的形式 -->
<script>
// 父3个 ---  子4个 -- 父mounted
export default {
  beforeCreate() {
    console.log('父的beforeCreate');
  },
  created() {
    console.log('父的created');
  },
  beforeMount() {
    console.log('父的beforeMount');
  },
  mounted() {
    console.log('父的mounted');
  },
};
</script>
